html {
    width: 100vw;
    height: 100vh;
}

body {
    height: 100%;
    display: flex;
    flex-direction: column;
}

* {
    margin: 0;
    padding: 0;
}

a {
    text-decoration: none;
}


/* w:375px h:44px */

#header {
    display: flex;
    width: 10rem;
    height: 1.173333rem;
    background: orange;
    justify-content: space-between;
    align-items: center;
}


/* h:25px */

#header img:nth-of-type(1) {
    height: .666667rem;
    padding-left: .213333rem;
}


/* h:30px */

#header img:nth-of-type(2) {
    height: .8rem;
}


/* w:375px h:60px */

#search {
    display: flex;
    justify-content: space-around;
    align-items: center;
    width: 10rem;
    height: 1.6rem;
    background: rgb(247, 242, 242);
}

#search input {
    border: 0;
}

#search>input:focus {
    outline: none
}


/* h:30px w:250px */

#search input:nth-of-type(1) {
    width: 6.666667rem;
    height: .8rem;
    border-radius: .3rem;
    background: gainsboro;
    padding-left: .4rem;
}


/* h:30px w:90px */

#search input:nth-of-type(2) {
    width: 2.4rem;
    height: .8rem;
    background: orange;
    border-radius: .4rem;
}

#miniNav {
    height: 1.006667rem;
    background: rgb(240, 236, 236);
    font: .4rem/1.006667rem "";
    padding-left: .33rem;
    border: .026667rem solid rgb(187, 181, 181);
}

#miniNav>a {
    color: black;
}

#main {
    flex: 1;
    overflow: auto;
    box-sizing: border-box;
}

#main .title {
    margin-top: .333333rem;
    height: 1.006667rem;
    background: rgb(240, 236, 236);
    font: .4rem/1.006667rem "";
    padding-left: .33rem;
    color: orange;
    border: .026667rem solid rgb(187, 181, 181);
}

#main .title {
    margin-bottom: .333333rem;
}

#category #category-list {
    display: flex;
    flex-direction: column;
}

#category #category-list>div {
    height: .98rem;
    background: rgb(240, 236, 236);
    font: .45rem/.98rem "";
    border: .026667rem solid rgb(187, 181, 181);
    padding: 0 .213333rem;
    display: flex;
    justify-content: space-between;
}

#category>div>span {
    margin-left: 5.333333rem;
}

#category-list>#ranking {
    display: none;
}

#ranking {
    display: flex;
    flex-direction: column;
}

#ranking>a {
    color: black;
    width: 10rem;
    height: 1.8rem;
    border-bottom: .026667rem solid grey;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

#ranking>a>div>span:nth-of-type(1) {
    width: .633333rem;
    height: .633333rem;
    background: rgb(163, 159, 159);
    display: inline-block;
    color: white;
    margin-left: .213333rem;
    text-align: center;
    font: .4rem/.6333333rem "";
}

#ranking>a>div>span:nth-of-type(2) {
    font-size: .433333rem;
    margin-left: .533333rem;
}

#ranking>a:nth-of-type(1)>div>span:nth-of-type(1) {
    width: .633333rem;
    height: .633333rem;
    background: red;
    display: inline-block;
    text-align: center;
    font: .4rem/.6333333rem "";
}

#ranking>a:nth-of-type(2)>div>span:nth-of-type(1) {
    width: .633333rem;
    height: .633333rem;
    background: orange;
    display: inline-block;
    text-align: center;
    font: .4rem/.6333333rem "";
}

#ranking>a:nth-of-type(3)>div>span:nth-of-type(1) {
    width: .633333rem;
    height: .633333rem;
    background: greenyellow;
    display: inline-block;
    text-align: center;
    font: .4rem/.6333333rem "";
}

#ranking>a>span {
    margin-top: .213333rem;
    font-size: .266667rem;
    margin-left: 1.53333rem;
}

#footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: whitesmoke;
    padding-top: .333333rem;
}

#footer>div {
    width: 10rem;
    display: flex;
}

#footer>div>a {
    border: .026667rem solid #c4c4c4;
    display: block;
    text-align: center;
    font: .32rem/.8rem "";
    color: black;
}

#footer>div>a:nth-of-type(1) {
    width: 30%;
    border-right: 0;
}

#footer>div>a:nth-of-type(2) {
    width: 30%;
    border-right: 0;
}

#footer>div>a:nth-of-type(3) {
    width: 40%;
}

#footer>p:nth-of-type(1) {
    padding-top: .24rem;
    color: #666;
}

#footer>p:nth-of-type(1)>span:nth-of-type(1) {
    color: red;
}

#footer>p:nth-of-type(2) {
    padding-top: .24rem;
    color: #666;
}